using System;
using System.Collections.Generic;
using System.Text;

namespace Ordering.Domain
{
    public partial class Order
    {
        public class NewOrderState : OrderState
        {
            # region Constructor

            public NewOrderState(Order order)
                : base(order)
            {
            }

            # endregion

            # region State Change

            public override void Processing()
            {
                this.Order.CurrentState = new ProcessingOrderState(this.Order);
            }

            # endregion

            # region Overriddent Members

            public override OrderStateKind Kind
            {
                get { return OrderStateKind.New; }
            }

            # endregion
        }
    }
}
